package com.yangl.study.aop.jdkDynamicAopProxy;

import lombok.Getter;

/**
 * 被代理的对象
 *
 * @author yanglei
 * @date 2021-12-05 22:17
 */
public class TargetSource {

    /** 被代理对象的Class */
    @Getter
    private Class<?> targetClass;

    @Getter
    private Class<?>[] interfaces;

    /** 被代理的对象 */
    @Getter
    private Object target;

    public TargetSource(Object target, Class<?> targetClass, Class<?>... interfaces) {
        this.target = target;
        this.targetClass = targetClass;
        this.interfaces = interfaces;
    }

}
